<template>
  <div class="about">
    <h1>This is an about page</h1>
    <el-button
      type="primary"
      @click="$store.commit('updateAge', Math.floor(Math.random() * 100))"
      >test local storage</el-button
    >
    <button :class="$style['bs-btn']">测试testd</button>
    <div :class="$style.test" :style="'background: ' + color_primary"></div>
    <div :class="$style.test" :style="'background: ' + color_success"></div>
  </div>
</template>
<script>
import { color_primary, color_success } from "@/vars.module.scss";
console.log(color_primary);
export default {
  name: "AboutA",
  components: {},
  data() {
    return {
      color_primary,
      color_success,
    };
  },
};
</script>
<style lang="scss" module>
.bs-btn {
  border: 1px solid teal;
  border-radius: 4px;
  background: white;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  &:hover {
    cursor: pointer;
    background: #d5f3e4;
  }
  &:active {
    background: green;
  }
  &:focus {
    border: 1px solid green;
  }
}
//@import "src/styles.scss";
//.bs-button {
//  border: 1px solid $--color-primary;
//  border-radius: 4px;
//  background: white;
//  font-size: 1rem;
//  padding: 0.5rem 1rem;
//}
.test {
  width: 10rem;
  height: 6rem;
}
</style>
